@charset "UTF-8";
$dev: mobile;
$designWidth: 750;
$prefix-default: webkit spec;

$baseColor: #E22231; // 基础颜色
$btnColor: #fff; // 按钮颜色
$color: (
        mod:(font:#243b48, alertBtn:#26B7BC),
        diploma:(base:#12161e, font:#ebe0b9, dmcTitle:#a69ea6),
        invitation:(inputColor:#222, border:#e4e4e4, btnColor:#fff, btnBg:#26b7bc, footColor:#666),
        exprience:(base:#01284b, border:#00435f)
); // 颜色管理

$zIndex: (); // 层级管理

@import "../node_modules/compass/core/base";
@import "../node_modules/compass/core/_mobile";
[v-cloak] {
  display: none;
}

@mixin borderBottom1px {
  &:after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    height: 1px;
    background-color: #c8c7cc;
    transform: scaleY(0.5);
  }
}

body {
  user-select: none;
  max-width: rem(750);
  margin: auto !important;
  overflow: hidden;
}

.column-ui {
  position: absolute;
  top: rem(45);
  left: 0;
  right: 0;

  width: 100%;
  height: rem(68);
  z-index: 99;

  .column-icon {
    position: absolute;
    top: 0;
    display: inline-block;
    width: rem(40);
    height: rem(40);
    background: {
      size: contain;
      position: center;
      repeat: no-repeat;
    }
    &:after {
      content: '';
      position: absolute;
      top: -100%;
      left: -100%;
      width: rem(120);
      height: rem(120);
    }
  }
  .column-return {
    left: rem(60);
    @include bg-image('../images/mod_return', 'png');
  }
  .column-share {
    right: rem(60);
    @include bg-image('../images/mod_share', 'png');
  }
}

.alert-ui {
  @include position(absolute, 0);
  width: rem(540);
  height: rem(288);
  margin: auto;
  background-color: rgb(255, 255, 255);
  border-radius: rem(12);
  .alert-ui-top {
    position: relative;
    width: 100%;
    height: rem(198);
    overflow: hidden;
    box-sizing: border-box;
    @include borderBottom1px();
    &_title {
      width: rem(480);
      height: rem(48);
      margin: rem(40) auto 0;
      font-size: 17px;
      font-size: rem(34);
      line-height: rem(48);
      color: color(mod, font);
      text-align: center;
      @include nowrap();
    }
    &-desc {
      display: table;
      width: rem(300);
      height: rem(96);
      margin: auto;
      font-size: 12px;
      font-size: rem(24);
      line-height: rem(41.25);
      color: color(mod, font);
      text-align: center;
      .autd_content {
        display: table-cell;
        vertical-align: middle;
      }
    }
  }
  .alert-ui-footer {
    width: 100%;
    height: rem(88);
    font-size: 15px;
    font-size: rem(30);
    line-height: rem(88);
    text-align: center;

    &_btn {
      display: inline-block;
      width: 100%;
      height: 100%;
      color: color(mod, alertBtn);
      &:active {
        background-color: #D4D4D4;
      }
    }
  }
}

.ui-mask {
  @include position(fixed, 0);
  background: rgba(0, 0, 0, .3);
  z-index: 999;
}

.img-cropper {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
}

.m-landscape {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 14px;
  font-size: 14px;
  color: #333;
  background-color: #e4f0ff;
  z-index: 9999;
  .tip {
    width: 100%;
    padding-top: 42px;
    background: url("../images/landscape_rm.png") no-repeat center top;
    background-size: 32px auto;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}

@media only screen and (orientation: landscape) {
  .body {
    overflow: hidden;
  }
  .m-landscape {
    display: block;
  }
}

.bounce-enter-active {
  @include animation(bounce-in .5s)
}

.bounce-leave {
  //opacity: 0;
  //@include animation(bounce-in .5s reverse)
  @include animation(fadeOut .5s)
}

.scrop-enter-active {
  @include animation(fadeInRight .5s)
}

.scrop-leave-active {
  @include animation(fadeOutRight .5s)
}

.fade-enter-active, .fade-enter-to {
  @include animation(fadeIn .5s)
}

.fade-leave-active {
  @include animation(fadeOut .2s)
}

.qrCode-enter-active, .qrCode-enter-to {
  @include animation(wobble .5s)
}

.crop-enter-active {
  @include animation(slideInDown .5s)
}

.crop-leave-active {
  @include animation(slideOutUp .5s)
}

@include keyframes(bounce-in) {
  0% {
    @include transform(scale(0));
  }
  50% {
    @include transform(scale(1.5));
  }
  100% {
    @include transform(scale(1));
  }
}

@include fadeOut();
@include fadeIn();
@include fadeInRight();
@include fadeOutRight();
@include slideInDown();
@include slideOutUp();
@include wobble();

.m-crop {
  @include position(fixed, 0);
  background-color: #000;
  z-index: 999;
  .m-crop-wapr {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    .m-crop-btn {
      position: absolute;
      left: 0;
      @include display(flex);
      @include justify-content(space-around);
      width: 100%;
      height: 40px;
      z-index: 2;
      .m-crop-icon {
        display: inline-block;
        position: relative;
        width: 120px;
        height: 42px;
        background: {
          image: url("../images/crop_icons.png");
          size: 239px 21px;
          repeat: no-repeat;
        }
      }
      .m-crop-btn_enlarge {
        background-position: 50px 10px;
      }
      .m-crop-btn_narrow {
        background-position: -60px 10px;
      }
      .m-crop-btn_rotate {
        background-position: -170px 10px;
      }
    }
    .m-crop-top {
      top: 10px;
    }
    .m-crop-footer {
      bottom: 20px;
      .m-crop-btn_cancel, .m-crop-btn_choice {
        display: inline-block;
        width: 120px;
        height: 42px;
        line-height: 42px;
        text-align: center;
        color: #fff;
        border: solid 1px #fff;
        border-radius: 5px;
        &:active {
          background-color: #999;
        }
      }
    }
  }
}